﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BbsbWebService.Enums;
using BbsbWebService.Classes;
using BbsbWebService.Classes.Plugins.Bbsb;
using BbsbWebService.Classes.Plugins.KeyMap;

namespace BbsbWebService.Classes
{
    public static class ControllableItemFactory
    {
        public static ControllableItem CreateItem(string typeName)
        {
            ControllableItem retVal = null;
            if (AppSettings.ItemTypeDictionary.ContainsKey(typeName))
            {
                retVal = (ControllableItem)Activator.CreateInstance(AppSettings.ItemTypeDictionary[typeName]);
            }

            return retVal;
        }
    }
}
